import {ref} from 'vue'
import {defineStore} from 'pinia'


export const useConfigStore = defineStore('config', () => {
  const config  = ref({
    pbUrl: "",
    pbUserName: "",
    pbPassWord: "",
    imUrl: "",
    frequency: [],
    amount: 5,
    bettingInterval: null,
  })

  function setConfig(item) {
    config.value = item
  }

  return {config, setConfig}
})


